cmake_minimum_required(VERSION 3.20)

# 设置 async_io 的版本信息
set(async_io_VERSION_MAJOR 1)
set(async_io_VERSION_MINOR 0)
set(async_io_VERSION_PATCH 0)

# 项目名称
project(async_io VERSION ${async_io_VERSION_MAJOR}.${async_io_VERSION_MINOR}.${async_io_VERSION_PATCH})

# 设置编译选项
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
message("VERSION:" ${async_io_VERSION})

include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src/async_io)

add_subdirectory(src)

set(BUILD_DEMO true)
